package com.joysuch.wwyt.attendant.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.joysuch.wwyt.attendant.bean.AttendantPlanContentBean;
import com.joysuch.wwyt.attendant.bean.AttendantRecordProcessBean;
import com.joysuch.wwyt.attendant.entity.AttendantPlanContent;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Time;
import java.util.Date;
import java.util.List;

/**
 * @Description //TODO
 * @Date 2023/2/15 16:44
 * @Author Leong
 **/
@Data
public class AttendantRecordDetailVo {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "跟班计划ID")
    private Long attendantPlanId;

    @ApiModelProperty(value = "计划名称")
    private String planName;

    @ApiModelProperty(value = "跟班时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date attendantTime;

    @ApiModelProperty(value = "跟班开始时间")
    private Time startTime;

    @ApiModelProperty(value = "跟班结束时间")
    private Time endTime;

    @ApiModelProperty(value = "跟班人员")
    private Long userId;

    @ApiModelProperty(value = "跟班人名称")
    private String userName;

    @ApiModelProperty(value = "岗位名称")
    private String jobName;

    @ApiModelProperty(value = "跟班区域")
    private Long areaId;

    @ApiModelProperty(value = "区域名称")
    private String areaName;

    @ApiModelProperty(value = "停留时长")
    private String duration;

    @ApiModelProperty(value = "状态 1未开始 2进行中 3已完成 -1 逾期未完成 0暂存")
    private Integer state;

    @ApiModelProperty(value = "是否发现隐患 0否 1是")
    private Integer isFindDanger = 0;

    @ApiModelProperty(value = "签到时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date signInTime;

    @ApiModelProperty(value = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date finishTime;

    @ApiModelProperty(value = "跟班检查内容")
    private List<AttendantPlanContent> contentList;

    @ApiModelProperty(value = "隐患记录")
    private List<AttendantRecordProcessBean> processList;

    @ApiModelProperty(value = "签到状态 正常 异常")
    private String status;

}
